package com.meituan.domain;

import com.meituan.bo.UserBo;
import lombok.Data;

/**
 * Created by lizhenxing on 2017/3/14.
 */
@Data
public class User {

    private Long id;

    private String username;

    private String password;

    private Sex sex;

    private Byte age;

    private String homeTown;


    public void fromUserBo(UserBo bo){
        username = bo.getUsername();
        password = bo.getPassword();
        sex = bo.getSex();
        age = bo.getAge();
        homeTown = bo.getHomeTown();
    }
}
